<template>
  <div class="welcome">
    <template>
      <el-table :data="tableData" border style="width: 100%">
        <el-table-column prop="username" label="登录账户" width="130" align="center"> </el-table-column>
        <el-table-column prop="lastLogin.ip" label="上次登录IP" width="130" align="center"> </el-table-column>
        <el-table-column prop="lastLogin.loginTime" label="上次登录时间" align="center" sortable> </el-table-column>
        <el-table-column prop="nowLogin.ip" label="本次登录IP" align="center"> </el-table-column>
        <el-table-column prop="nowLogin.loginTime" label="本次登录时间" align="center"> </el-table-column>
      </el-table>
    </template>
  </div>
</template>
<script>
import * as api from '@/api'
  export default {
      created() {
          api.getLoginLogApi()
          .then(res=>{
            //   console.log(res.data.data);
              this.tableData=res.data.data
          })
      },
    data() {
      return {
        tableData: []
      }
    }
  }
</script>